package sg.nus.iss.vmcs.guilisteners;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import sg.nus.iss.vmcs.controllers.SimulationController;

/**
 * Action Listener for the Activate Maintainer Panel Button on the Simulator Control Panel
 * @author Pang Pingli
 */
public class ActivateMaintainerPanelButtonListener implements ActionListener {
	
	/** Controller used for the Simulation Control Panel  */
	private SimulationController ctrl;

	/**
	 * Creates a new instance of the Activate Maintainer Panel Button Listener
	 * @param ct Reference to Simulation Controller
	 */
	public ActivateMaintainerPanelButtonListener(SimulationController ct) {
		ctrl = ct;
	}
  
	/**
	 * Implementation of Action Performed
	 */
	public void actionPerformed(ActionEvent e) {
		ctrl.setupMaintainer();
	}
}